-- GENERATED SPELL FOR [Reanimated Exarch] --


function spell0_22452(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(8258,pUnit)
pUnit:RegisterEvent('Sorts_22452', 613, 1)
end

function spell1_22452(pUnit, Event) --@Power Word: Fortitude,n/a--
pUnit:FullCastSpellOnTarget(36004,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22452', 2000, 1)
end

function Sorts_22452(pUnit, Event)
local choix_sorts_22452 = math.random(0, 1)
if choix_sorts_22452 == 0 then
pUnit:RegisterEvent('spell0_22452', 1, 1)
end
if choix_sorts_22452 == 1 then
pUnit:RegisterEvent('spell1_22452', 1, 1)
end
end

function mob22452_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22452', math.random(1500, 3000), 1)
end

function mob22452_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22452_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22452_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22452, 1, 'mob22452_Action')
RegisterUnitEvent(22452, 2, 'mob22452_Leave')
RegisterUnitEvent(22452, 3, 'mob22452_Kill')
RegisterUnitEvent(22452, 4, 'mob22452_Die')
